<?php
/**
 * Text element
 *
 */
class ArrowFormCheckbox extends ArrowFormField{

	public function configure(){
		parent::configure();
		$this->addProperties(array(
		));
	}

	public function validate( $proposedValue ){
		return true;
	}

	public function generateOutput(){
		$attribuites = array();
		$attribuites["name"] = $this->getHtmlName();
		$hint = $this->getHint();
		if($hint)
			$attribuites["hint"] = $hint;
			
		$mask = $this->getProperty("mask");
		if( $mask )
			$attribuites["mask"] = $mask;

		$attribuites["value"] = str_replace("\"", "&quot;", $this->getValue()); //htmlentities(, ENT_QUOTES);
		return '<input type="checkbox" '.$this->genTagsFromArray($attribuites).' '.$this->addExternal().' />';
	}
}
?>